﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using GameLogic.Controls;
using GameLogic;

namespace Bubbles
{
    public partial class SettingsPage : PhoneApplicationPage
    {
        public SettingsPage()
        {
            InitializeComponent();

            this.DataContext = GameContainer.Game.GameName;
        }

        private void _easy_Click(object sender, RoutedEventArgs e)
        {
            Settings.Level = GameLevel.Easy;
            NavigationService.Navigate(Const.MenuPageUri);
        }

        private void _normal_Click(object sender, RoutedEventArgs e)
        {
            Settings.Level = GameLevel.Normal;
            NavigationService.Navigate(Const.MenuPageUri);
        }

        private void _hard_Click(object sender, RoutedEventArgs e)
        {
            Settings.Level = GameLevel.Hard;
            NavigationService.Navigate(Const.MenuPageUri);
        }
    }
}